package com.yl.student.service;

import com.yl.student.bean.dto.DataVerifyResponseDto;
import com.yl.student.bean.entity.LoginInfo;
import com.yl.student.bean.entity.ShopInfo;
import com.yl.student.bean.entity.UserInfo;

public interface LoginInfoService {
    /**
     *
     * @param userId
     * @param pwd
     * @return
     */
    public DataVerifyResponseDto verifyLogin(String userId, String pwd,String role);


    public int registerUserLoginInfo(LoginInfo loginInfo);
    public int registerUserInfo(UserInfo userInfo);

    /**
     * 用户注册
     * @param loginInfo
     * @param userInfo
     * @return 用来判断用户注册是否成功，这样做是为了方便，在注册操作进行之前，先进性用户名是否注册的步骤校验
     */
    public boolean registerUser(LoginInfo loginInfo,UserInfo userInfo);

    public int registerShopLoginInfo(LoginInfo loginInfo);
    public int registerShopInfo(ShopInfo shopInfo);
    public boolean registerShop(LoginInfo loginInfo,ShopInfo shopInfo);
}
